import { ThemeConfig } from 'antd';

export const antdTheme: ThemeConfig = {
  token: {
    // 主色调
    colorPrimary: '#667eea',
    colorSuccess: '#52c41a',
    colorWarning: '#faad14',
    colorError: '#ff4d4f',
    colorInfo: '#1890ff',
    
    // 字体
    fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif',
    fontSize: 14,
    fontSizeHeading1: 38,
    fontSizeHeading2: 30,
    fontSizeHeading3: 24,
    
    // 间距
    padding: 16,
    paddingLG: 24,
    paddingXL: 32,
    
    // 圆角
    borderRadius: 6,
    borderRadiusLG: 8,
    
    // 阴影
    boxShadow: '0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02)',
    boxShadowSecondary: '0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05)',
  },
  components: {
    Layout: {
      headerBg: '#667eea',
      headerHeight: 64,
      headerPadding: '0 24px',
      footerBg: '#ffffff',
      bodyBg: '#f0f2f5',
    },
    Card: {
      borderRadiusLG: 8,
      paddingLG: 24,
    },
    Button: {
      borderRadius: 6,
      controlHeight: 32,
      fontWeight: 400,
    },
    Input: {
      borderRadius: 6,
      controlHeight: 32,
    },
    Alert: {
      borderRadius: 6,
    },
    Badge: {
      fontFamily: 'inherit',
    },
    Typography: {
      titleMarginTop: 0,
      titleMarginBottom: 16,
    }
  },
  algorithm: undefined, // 可以设置为 theme.darkAlgorithm 来启用暗色主题
};